package org.ky.generator;

import org.ky.generator.component.MapperGenerator;
import org.ky.generator.component.ModelGenerator;
import org.ky.generator.component.SqlMapGenerator;
import org.ky.generator.config.DatabaseTableConfig;
import org.ky.generator.util.TablePrintHelper;

/**
 * 生成工具主入口
 * 
 * @author K.y
 * @version 1.0.0
 *
 */
public class MainGenerator {

	public static void main(String[] args) {
		// 实体类生成
		ModelGenerator.getInstance().generator();
		// Mapper.xml文件生成
		SqlMapGenerator.getInstance().generator();
		// Mapper接口类生成
		MapperGenerator.getInstance().genWithInterface(true).generator();
		// 查看生成表信息
		System.out.println(TablePrintHelper.getInstance(DatabaseTableConfig.getGenTables()));
	}
}
